﻿using System;
using AutoMapper;
using HamcoWcs.Contract.ContractCommon;
using HamcoWcs.Contract.ContractMes;
using HamcoWcs.DAL;
using HamcoWcs.Entitys.MesMsgQueues;
using HamcoWcs.Models.Common.Enums;
using HamcoWcs.Service.Common;


namespace HamcoWcs.Service.Mes.Parsers
{
    public class MesMsgParser_InventoryPalletDataRequest : MesMsgParserBase
    {
        public MesMsgParser_InventoryPalletDataRequest(ILoggerService loggerService, WcsDbContext wcsDbContext, IMapper mapper) : base(loggerService, wcsDbContext, mapper)
        {
        }

        public override string EventName => "InventoryPalletDataRequest";




        public override void HandleEvent(MesMsgQueue message)
        {
            // todo machine和货架的Pallet 同步状态
            //Console.WriteLine("recv mes InventoryPalletDataReply");

            message.Status = (int)EnumMesMsgStatus.Completed;
        }
    }
}
